package com.dishdex.menuhub.module.module.async;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * ClassName:
 * Package: com.dishdex.menuhub.module.module.async
 * Description:
 *
 * @Author:
 * @Create 2025/11/10 10:23
 * @Version 1.0
 */
@Service
@Slf4j
public class AsyncTaskService {

    @Async("taskExecutor")
    public void asyncSendSms() {
        log.info("发送短信");
    }

    @Async("taskExecutor")
    public void asyncRecordLog() {
        log.info("打印日志");
    }

    @Async("taskExecutor")
    public void asyncPush() {
        log.info("推送商家");
    }

}
